#include <WinTen.h>
#include <Windows.h>
#include <ClipApi.h>

//----------------------------------------------------------------------------//

CLIPPER IsOverWnd()    // hWnd, point
{
   DWORD dw = ( DWORD ) _parnl( 2 );
   POINT pt;
   RECT  rct;

   GetClientRect( _parni( 1 ), &rct );
   pt.x = LOWORD( dw );
   pt.y = HIWORD( dw );

   _retl( PtInRect( &rct, pt ) );
}

//----------------------------------------------------------------------------//
